#include "main.h"


int main(void){

    unsigned short ir = 0;
    unsigned short ps = 0;
    unsigned short als = 0;


    int_init();
    imx6u_clkinit();
    clk_enable();
    beep_init();
    key_init();
    led_init();
    uart_init(UART1);
    elcdif_init();
    rtc_init();
    rtc_disble();
    spi_master_init(ECSPI3_BASE , 1);
 
    unsigned char txdata = 'B';
    lcd_showchar(100 , 100 , txdata , 16 , 0);
    spi_write_byte(ECSPI3_BASE , 'C' , 1);
    txdata = spi_read_byte(ECSPI3_BASE);
    lcd_showchar(150 , 100 , txdata , 16 , 0);


    while(1){
        delay(500);
    }

    


    return 0;
  
}

